home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_c
/
cserial
/
tkb.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-04-04
|
416b
|
26 lines
/*
* TKB.C
*
* Keyboard input test driver program
*/
#include <stdio.h>
#include "_kb.h"
#if (!defined (TRUE))
# define TRUE (1)
# define FALSE (0)
#endif
main ()
{
int i;
while (TRUE)
{
while ((i = _kb ()) == -1);
if (i == 'q')
break;
printf ("_KB () = (%d) [%c]\n", i, i);
}
}